CFLAGS =   

all : program

clean : 
	rm program ./bin/*.o

program : ./bin/main.o ./bin/TxtReader.o ./bin/Model.o ./bin/View.o ./bin/LibraryRecord.o ./bin/ModelMaker.o ./bin/TextBook.o ./bin/Source.o ./bin/Library.o ./bin/AudioModule.o ./bin/AudioBook.o ./bin/AudioReader.o ./bin/LibraryView.o ./bin/AMView.o ./bin/Settings.o
	g++ -o program ./bin/main.o ./bin/TxtReader.o ./bin/Model.o ./bin/View.o ./bin/LibraryRecord.o ./bin/ModelMaker.o ./bin/Library.o ./bin/TextBook.o ./bin/Source.o ./bin/AudioModule.o ./bin/AudioBook.o ./bin/AudioReader.o ./bin/LibraryView.o ./bin/AMView.o ./bin/Settings.o -lmenu -lncursesw -laudiere

./bin/main.o : ./src/main.cpp ./src/Model/Model.h ./src/View/View.h ./src/Model/LibraryRecord.h ./src/Model/Library.h
	g++ $(CFLAGS) -o ./bin/main.o -c ./src/main.cpp

./bin/Model.o : ./src/Model/Model.cpp ./src/Model/Model.h ./src/Model/Source.h
	g++ $(CFLAGS) -o ./bin/Model.o -c ./src/Model/Model.cpp

./bin/TxtReader.o : ./src/IO/TxtReader.cpp ./src/IO/TxtReader.h
	g++ $(CFLAGS) -o ./bin/TxtReader.o -c ./src/IO/TxtReader.cpp

./bin/View.o : ./src/View/View.h ./src/View/View.cpp ./src/Model/Model.h ./src/Model/Library.h ./src/Model/ModelMaker.h ./src/Model/Library.h ./src/IO/AudioModule.h ./src/View/LibraryView.h ./src/View/AMView.h ./src/View/Settings.h
	g++ $(CFLAGS) -o ./bin/View.o -c ./src/View/View.cpp

./bin/LibraryRecord.o : ./src/Model/LibraryRecord.h ./src/Model/LibraryRecord.cpp
	g++ $(CFLAGS) -o ./bin/LibraryRecord.o -c ./src/Model/LibraryRecord.cpp

./bin/ModelMaker.o : ./src/Model/ModelMaker.h ./src/Model/ModelMaker.cpp ./src/Model/LibraryRecord.h ./src/Model/Model.h ./src/IO/TxtReader.h ./src/IO/AudioReader.h
	g++ $(CFLAGS) -o ./bin/ModelMaker.o -c ./src/Model/ModelMaker.cpp

./bin/TextBook.o : ./src/Model/TextBook.h ./src/Model/TextBook.cpp ./src/Model/Source.h
	g++ $(CFLAGS) -o ./bin/TextBook.o -c ./src/Model/TextBook.cpp

./bin/Source.o : ./src/Model/Source.cpp ./src/Model/Source.cpp
	g++ $(CFLAGS) -o ./bin/Source.o -c ./src/Model/Source.cpp

./bin/Library.o : ./src/Model/Library.cpp ./src/Model/Library.h
	g++ $(CFLAGS) -o ./bin/Library.o -c ./src/Model/Library.cpp

./bin/AudioModule.o : ./src/IO/AudioModule.h ./src/IO/AudioModule.cpp ./src/Model/AudioBook.h
	g++ $(CFLAGS) -o ./bin/AudioModule.o -c ./src/IO/AudioModule.cpp

./bin/AudioBook.o : ./src/Model/AudioBook.h ./src/Model/AudioBook.cpp ./src/Model/Source.h
	g++ $(CFLAGS) -o ./bin/AudioBook.o -c ./src/Model/AudioBook.cpp

./bin/AudioReader.o : ./src/IO/AudioReader.cpp ./src/IO/AudioReader.h ./src/Model/AudioBook.h
	g++ $(CFLAGS) -o ./bin/AudioReader.o -c ./src/IO/AudioReader.cpp

./bin/LibraryView.o : ./src/View/LibraryView.h ./src/View/LibraryView.cpp ./src/View/Settings.h
	g++ $(CFLAGS) -o ./bin/LibraryView.o -c ./src/View/LibraryView.cpp

./bin/AMView.o : ./src/View/AMView.h ./src/View/AMView.cpp ./src/IO/AudioModule.h ./src/View/Settings.h
	g++ $(CFLAGS) -o ./bin/AMView.o -c ./src/View/AMView.cpp

./bin/Settings.o : ./src/View/Settings.h ./src/View/Settings.cpp
	g++ $(CFLAGS) -o ./bin/Settings.o -c ./src/View/Settings.cpp
